'use strict';

const Service = require('egg').Service;

class DictService extends Service {
  async deleteByDictType(dictType) {
    const {ctx} = this;
    await ctx.model.SysDictData.destroy({
      where:{
        dictType:dictType
      }
    });
  }
}

module.exports = DictService;
